﻿namespace Core.Domain.Bases
{
  ///<summary>Base for all entities with standard Id</summary>
  /// <remarks>Initially modelled after http://russelleast.wordpress.com/2008/09/20/implementing-the-repository-and-finder-patterns/</remarks>
  public abstract class EntityBaseWithId : EntityBase
  {
    protected EntityBaseWithId()
          : this(0)
    {
    }

    protected EntityBaseWithId(int id)
    {
      Id = id;
    }

    ///<summary>Base Id for this entity</summary>
    public virtual int Id { get; private set; }
  }
}